]> dgit.raspbian.org Git - gnome-shell.git/commit
i18n: Add context to "Power mode" title string
authorDavide Ferracin <davide.ferracin@protonmail.com>
Tue, 7 Oct 2025 12:45:45 +0000 (14:45 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 15 Oct 2025 00:08:07 +0000 (00:08 +0000)
commit7b7d03bafa71ee1c2ae4f242d6b84e79ebc38913
treeee2c4bfd2e3c14dcde0d828e05e7a9b93023e827
parentfd6e55cd74077913046c539021fc6c4f2ff683cf
i18n: Add context to "Power mode" title string

The "Power mode" string in the quick settings menu appears both in the
title of the button and as the menu header that opens when clicking on
such button.
Currently they are translated together, but---at least in
Italian---the standard translation, "Modalità energia", is too long to
fit in the button and is very often truncated to "Modalità…" (aka
"Mode", in English) from which is not clear what the menu is about.
We would use "Energia" for the button title, but at the same time it
would be nice to have the full "Modalità energia" translation in the
menu header, where there is more space available.

For this reason I propose to add contexts to the two "Power mode"
strings, so that the string can be translated in different ways
depending on its position.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3903>
js/ui/status/powerProfiles.js